/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bodega;

import beansbodega.Material;
import factorymaterial.FactoryMaterial;
import java.util.List;

/**
 *
 * @author Miguel Pichipillan S
 */
public class Bodega {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        FactoryMaterial fm = new FactoryMaterial();
        List<Material> l = fm.buscarMaterialByNombre("tu");
        int i;
        for(i=0;i<l.size();i++) {
            System.out.println("id: " +l.get(i).getId() + " | nombre: " + l.get(i).getMaterial() );
        }
        
    }
}
